<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='BUI'>/**
</span> * @fileOverview 下拉菜单，一般用于下拉显示菜单
 * @author dxq613@gmail.com
 * @ignore
 */

var BUI = require(&#39;bui-common&#39;),
  UIBase = BUI.Component.UIBase,
  Menu = require(&#39;./menu&#39;);

var popMenuView =  BUI.Component.View.extend([UIBase.PositionView],{
  
});

<span id='BUI-Menu-PopMenu'> /**
</span> * @class BUI.Menu.PopMenu
 * 上下文菜单，一般用于弹出菜单
 * xclass:&#39;pop-menu&#39;
 * @extends BUI.Menu.Menu
 * @mixins BUI.Component.UIBase.AutoShow
 * @mixins BUI.Component.UIBase.Position
 * @mixins BUI.Component.UIBase.Align
 * @mixins BUI.Component.UIBase.AutoHide
 */
var popMenu =  Menu.extend([UIBase.Position,UIBase.Align,UIBase.AutoShow,UIBase.AutoHide],{

},{
  ATTRS:{
<span id='BUI-Menu-PopMenu-property-clickHide'>     /** 点击菜单项，如果菜单不是多选，菜单隐藏
</span>     * @type {Boolean} 
     * @default true
     */
    clickHide : {
      value : true
    },
    align : {
      value : {
         points: [&#39;bl&#39;,&#39;tl&#39;], // [&#39;tr&#39;, &#39;tl&#39;] 表示 overlay 的 tl 与参考节点的 tr 对齐
         offset: [0, 0]      // 有效值为 [n, m]
      }
    },
    visibleMode : {
      value : &#39;visibility&#39;
    },
<span id='BUI-Menu-PopMenu-property-autoHide'>    /**
</span>     * 点击菜单外面，菜单隐藏
     * 点击菜单项，如果菜单不是多选，菜单隐藏
     * @type {Boolean} 
     * @default true
     */
    autoHide : {
      value : true
    },
    visible : {
      value : false
    },
    xview:{
      value : popMenuView
    }
  }
},{
  xclass:&#39;pop-menu&#39;
});

module.exports = popMenu;
</pre>
</body>
</html>
